<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="format-detection" content="telephone=no">
    <meta name="renderer" content="webkit">
    <meta name="keywords" content="安装LED显示屏,LED显示屏安装,LED显示屏报价,LED显示屏维修">
    <meta name="description" content="万屏汇是一家提供LED显示屏报价,LED显示屏安装,LED显示屏维修服务的网站,为全国客户提供上门报价,安装,维修服务">
    <title>万屏汇-上门安装LED屏,LED显示屏安装,LED显示屏报价,LED显示屏维修,万屏网安装</title>
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="css/swiper.min.css">
    <link rel="stylesheet" href="css/index.css">
    <script>
        // ie9 及以下重定向
        if (location.href.indexOf('wanpingwang.com') > 0 && navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion.split(";")[1].replace(/[ ]/g, "").replace("MSIE", "")) <= 9) {
            window.location.href = 'https://ie.wanpinghui.com';
        }

        // 手机浏览器重定向
        var sUserAgent = navigator.userAgent.toLowerCase();
        var bIsIpad = sUserAgent.match(/ipad/i) == "ipad";
        var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os";
        var bIsMidp = sUserAgent.match(/midp/i) == "midp";
        var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4";
        var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb";
        var bIsAndroid = sUserAgent.match(/android/i) == "android";
        var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce";
        var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile";

        if (bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM || bIsIpad) {
            window.location.href = "http://m.wanpingwang.com";
        }
    </script>
</head>

<body>
    <header class="Head">
        <a class="icon-logo" href="/index.html"></a>
        <span class="unilumin">&nbsp;上市公司洲明科技旗下</span>
        <span class="pull-right number">全国服务热线：<span class="phone400">400-998-0215</span> </span>
    </header>
    <section class="slogan-title ">
        <h2 class="title-h2">安装LED显示屏需要多少钱？</h2>
        <p class="title-p">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;——汇集全国19861家认证工程商，清晰报价，统一承保</p>
    </section>
    <section id="computed">
        <div class="container computed-now">
            <div class="com-left">
                <div class="com-head">
                    <span class="com-name">报价计算器</span>
                    <span class="com-info">今天已有<strong class="curr-number"> 794 </strong>位客户获取了用屏报价</span>
                </div>
                <p class="com-input">
                    <span class="com-title">所在城市</span>
                    <span class="select selectCity" onclick="openCitySelect(event,this)"><span class="citySelect">深圳市</span><span class="pull-right icon-circle-down"></span></span>
                </p>
                <p class="com-input install">
                    <span class="com-title">使用场景</span>
                    <span class="select" onclick="openOptions(event,this)" type="2"><span class="select-val">商业广告屏</span><span class="pull-right icon-circle-down"></span></span>
                    <span class="options" onclick="chooseOptionInstall(event,this)">
                        <i class="item" type="3">门头屏</i>
                        <i class="item" type="2">商业广告屏</i>
                        <i class="item" type="5">室内高清屏</i>
                        <i class="item" type="4">交通诱导屏</i>
                        <i class="item" type="1">安防监控屏</i>
                        
                    </span>
                </p>
                <p class="com-input location">
                    <span class="com-title">室内外</span>
                    <span class="select" onclick="openOptions(event,this)" type="1"><span class="select-val">户外</span><span class="pull-right icon-circle-down"></span></span>
                    <span class="options" onclick="chooseOption(event,this)">
                        <i class="item" type="1">户外</i>
                        <i class="item" type="2">室内</i>
                    </span>
                </p>

                <p class="com-input distance">
                    <span class="com-title">观看距离</span>
                    <span class="rela">
                        <input class="input" placeholder="输入观看距离" value="6"/>
                        <i class="m">m</i>
                    </span>
                </p>
                <p class="com-input size">
                    <span class="com-title">屏幕面积</span>
                    <span class="rela">
                        <input class="input input-half width" placeholder="宽" value="8"/>
                        <i class="m">m</i>
                    </span>
                    <span class="rela">
                        <input class="input input-half height" placeholder="高" value="4.5"/>
                        <i class="m">m</i>
                    </span>
                </p>
                <p class="com-input mobile">
                    <span class="com-title last-com-title">联系方式</span>
                    <span class="rela">
                        <input class="input mobile" placeholder="用于接收报价的手机号"/>
                        <span class="com-tip">为了您的权益，您的隐私将被严格保密。</span>
                        <span class="mobileError">请填写手机号</span>
                    </span>
                </p>
            </div>
            <div class="com-right">
                <div class="com-head">
                    <span class="com-money">您的装屏预算<strong class="text-blue "> 88888 </strong>元</span>
                </div>
                <p class="com-total">
                    显示模块 <span class="com-div-money">888</span> 元
                </p>
                <p class="com-total">
                    控制系统 <span class="com-sys-money">888</span> 元
                </p>
                <p class="com-total">
                    其他配件 <span class="com-other-money">888</span> 元
                </p>
            </div>
            <span class="btn" onclick="submit(event,this)">开始计算</span>
        </div>
        <div class="computed-result container">
            <div class="com-head">
                <span class="com-money">您的装屏预算约<strong class="text-yellow"> 88888 </strong>元</span>
            </div>
            <div class="line-div">
                <p class="result-total">
                    显示模块 <span class="com-div-money">888</span> 元
                </p>
                <p class="result-total">
                    控制系统 <span class="com-sys-money">888</span> 元
                </p>
                <p class="result-total">
                    其他配件 <span class="com-other-money">888</span> 元
                </p>
            </div>
            <p class="text text-orig">*万屏汇客服将在3分钟内给您回电，免费提供装屏咨询服务</p>
            <p class="text text-gray">*当前报价为平台参考价，具体报价以实际安装需要为准</p>
        </div>
    </section>
    <section id="WhyChoose" >
        <div class="container">
            <div class="title">
                <span class="title-desc"><img class="icon" src="img/icon02.png"/><span class="middle">为什么选择万屏汇</span></span>
                <span class="line"></span>
            </div>
            <div class="col-md-3 col-sm-3 col-xs-3">
                <div class="result">
                    <div class="result-title">多</div>
                    <p class="result-desc">1000+厂商</p>
                    <p class="result-desc">上万种品牌</p>
                    <p class="result-desc">满足不同需求</p>
                </div>
            </div>
            <div class="col-md-3 col-sm-3 col-xs-3">
                <div class="result">
                    <div class="result-title">快</div>
                    <p class="result-desc">工程商遍布全国</p>
                    <p class="result-desc">一键报装</p>
                    <p class="result-desc">最快速度上门</p>
                </div>
            </div>
            <div class="col-md-3 col-sm-3 col-xs-3">
                <div class="result">
                    <div class="result-title">好</div>
                    <p class="result-desc">品牌厂商直供</p>
                    <p class="result-desc">质量保障</p>
                    <p class="result-desc">统一承保</p>
                </div>
            </div>
            <div class="col-md-3 col-sm-3 col-xs-3">
                <div class="result">
                    <div class="result-title">省</div>
                    <p class="result-desc">多家报价可比</p>
                    <p class="result-desc">去除中间商</p>
                    <p class="result-desc">直击底价</p>
                </div>
            </div>
        </div>
    </section>
    <section id="case" >
        <div class="container">
            <div class="title">
                <span class="title-desc">
                    <img class="icon" src="img/icon05.png"/>
                    <span class="middle">近期案例</span>
                </span>
                <span class="line"></span>
            </div>
            <div class="swiper-container swiper-container-case swiper-container-horizontal swiper-container-free-mode">
                <div class="swiper-wrapper ">
                    <div class="swiper-slide swiper-slide-active">
                        <div class="pic-box case-pic">
                            <img src="./img/case1.jpg" />
                            <span class="case-tip">户外广告屏P10   108㎡   造价约46万   西宁新力景瑞地产</span>
                        </div>
                    </div>

                    <div class="swiper-slide swiper-slide-next">
                        <div class="pic-box case-pic">
                            <img src="./img/case2.jpg" />
                            <span class="case-tip">户外广告屏P16   156㎡   造价约63万   上海世博会石油馆</span>
                        </div>
                    </div>

                    <div class="swiper-slide">
                        <div class="pic-box case-pic">
                            <img src="./img/case3.jpg" />
                            <span class="case-tip">门头屏P8  2㎡  造价约4200   深圳科技园湖南菜馆</span>
                        </div>
                    </div>

                    <div class="swiper-slide">
                        <div class="pic-box case-pic">
                            <img src="./img/case4.jpg" />
                            <span class="case-tip">室内高清屏P3  12㎡  造价约9.6万   吉林长春站</span>
                        </div>
                    </div>

                    <div class="swiper-slide">
                        <div class="pic-box case-pic">
                            <img src="./img/case5.jpg" />
                            <span class="case-tip">舞台用屏P3  288㎡  造价约110万   北京水立方发布会</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <section id="Users">
        <div  class="container">
         <div class="title">
            <span class="title-desc">
                <img class="icon" src="img/icon06.png"/>
                <span class="middle">合作客户</span>
            </span>
            <span class="line"></span>
        </div>
        <div class="pic-1 text-center container" >
            <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3">
                <div class=" her-1 text-center">
                    <!--src="img/default.jpg" src-->
                    <img class="img-top"  src="img/cctv.png"/>
                </div>
            </div>
            <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3">
                <div class=" her-2 text-center">
                    <img class="img-top"  src="img/huawei.png"/>
                </div>
            </div>
            <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3">
                <div class=" her-3 text-center">
                    <img class="img-top"  src="img/vivo.png"/>
                </div>
            </div>
            <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3">
                <div class=" her-4 text-center">
                    <img class="img-top"  src="img/hainan.png"/>
                </div>
            </div>
        </div>
        <div class="pic-2 text-center container" >
            <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3">
                <div class=" her-1 text-center">
                    <img class="img-bottom"  src="img/darunfa.png"/>
                </div>
            </div>
                
            <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3">
                <div class=" her-2 text-center">
                    <img class="img-bottom"  src="img/zhongguo.png"/>
                </div>
            </div>
            <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3">
                <div class=" her-3 text-center">
                    <img class="img-bottom"  src="img/roe.png"/>
                </div>
            </div>
            <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3">
                <div class=" her-4 text-center">
                    <img class="img-bottom"  src="img/lamp.png"/>
                </div>
            </div>
        </div>
        </div>
    </section>
    <div style="text-align: center;">
        <a style="margin-top: 20px;display: inline-block;" href="http://szcert.ebs.org.cn/2ec3afeb-ad39-4173-8efa-4d3cf0b0f7aa" target="_blank"><img src="http://szcert.ebs.org.cn/Images/govIcon.gif" title="深圳市市场监督管理局企业主体身份公示" alt="深圳市市场监督管理局企业主体身份公示" width="36" height="50" border="0" style="border-width:0px;border:hidden; border:none;"></a>
        <a href="./about.html" style="text-align: center;display: block;margin-top: 10px;color: #2865d6;text-decoration: underline;">关于我们</a>
    <p style="margin-top: 10px;color: #777;text-align: center;font-size: 14px;">深圳市万屏时代科技有限公司  &nbsp;&nbsp;粤ICP备16014213号-8 &nbsp;&nbsp;深圳市前海深港合作区前湾一路1号A栋201</p>
    </div>
    

    <!--城市选择-->
    <div class="CityPanel" onclick="closeCityPanel(event,this)">
        <div id="citySelector">
            <div class="hd">
                <h1 class="title">选择安装城市</h1>
            </div>
            <div class="bd">
                <dl class="index" onclick="changeCard(event,this)">
                    <dt><a  class="selected" card="0">热门</a></dt>
                    <dd>
                        <a  card="1">ABCDE</a>
                        <a  card="2">FGHIJ</a>
                        <a  card="3">KLMNOP</a>
                        <a  card="4">QRSTUV</a>
                        <a  card="5">WXYZ</a>
                    </dd>
                </dl>
                <div class="list HOT" idom="list" onclick="changeCity(event,this)">
                </div>
                <div class="list ABCDE" idom="list" onclick="changeCity(event,this)">
                </div>
                <div class="list FGHIJ" idom="list" onclick="changeCity(event,this)">
                </div>
                <div class="list KLMNOP" idom="list" onclick="changeCity(event,this)">
                </div>
                <div class="list QRSTUV" idom="list" onclick="changeCity(event,this)">
                </div>
                <div class="list WXYZ" idom="list" onclick="changeCity(event,this)">
                </div>
            </div>
        </div>
    </div>


<script src="js/jquery-2.1.3.min.js"></script>
<script src="js/swiper.min.js"></script>
<!--七陌客服-->
<script type='text/javascript' src='https://webchat.7moor.com/javascripts/7moorInit.js?accessId=8df60a40-2112-11e8-bd2b-9370b1e34ff4&autoShow=true&language=ZHCN' async='async'>
</script>
<!-- <script id='ebsgovicon' src='http://szcert.ebs.org.cn/govicon.js?id=2ec3afeb-ad39-4173-8efa-4d3cf0b0f7aa&width=100&height=137&;type=1' type='text/javascript' charset='utf-8'></script> -->
<!--js解析url参数-->
<script>
    window["globalData"] = globalData = {};

    var doc_reffer = document.referrer.split("?")[1];
    try {
        var str2 = decodeURI(doc_reffer);
    } catch (e) {
        var str2 = "";
    }
    try {
        var str = decodeURI(window.location.href.split('?')[1]);
    } catch (e) {
        var str = "";
    }

    function GetQueryString(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
        var r = str.match(reg);
        if (r != null) return unescape(r[2]);
        return null;
    }

    function GetReferrer(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
        var r = str2.match(reg);
        if (r != null) return unescape(r[2]);
        return null;
    }

    var word = GetReferrer("word");//百度的搜索词
    var query = GetReferrer("query");//搜狗的搜索词
    var source = GetQueryString("source");
    var plan = GetQueryString("plan");
    var unit = GetQueryString("unit");
    var keyword = GetQueryString("keyword");
    var e_keywordid = GetQueryString("e_keywordid");
    var e_matchtype = GetQueryString("e_matchtype");
    var e_creative = GetQueryString("e_creative");
    var e_adposition = GetQueryString("e_adposition");
    var e_pagenum = GetQueryString("e_pagenum");
    var semWords = {
        source: source ? source : '',
        word: word || query || '',
        plan: plan ? plan : '',
        unit: unit ? unit : '',
        keyword: keyword ? keyword : '',
        e_keywordid: e_keywordid ? e_keywordid : '',
        e_matchtype: e_matchtype ? e_matchtype : '',
        e_creative: e_creative ? e_creative : '',
        e_adposition: e_adposition ? e_adposition : '',
        e_pagenum: e_pagenum ? e_pagenum : '',
        UrlReferrer: decodeURI(location.href) ? decodeURI(location.href) : ''
    };
    console.log(semWords);
    if (semWords.source || semWords.plan || semWords.unit || semWords.keyword || semWords.e_keywordid || semWords.e_matchtype
        || semWords.e_creative || semWords.e_adposition || semWords.e_pagenum || semWords.UrlReferrer) {
        semWords = JSON.stringify(semWords);
        globalData.sem = semWords;
    }

    globalData.cityToProvince = {
        "北京市": "北京市",
        "天津市": "天津市",
        "石家庄市": "河北省",
        "唐山市": "河北省",
        "秦皇岛市": "河北省",
        "邯郸市": "河北省",
        "邢台市": "河北省",
        "保定市": "河北省",
        "张家口市": "河北省",
        "承德市": "河北省",
        "沧州市": "河北省",
        "廊坊市": "河北省",
        "衡水市": "河北省",
        "太原市": "山西省",
        "大同市": "山西省",
        "阳泉市": "山西省",
        "长治市": "山西省",
        "晋城市": "山西省",
        "朔州市": "山西省",
        "晋中市": "山西省",
        "运城市": "山西省",
        "忻州市": "山西省",
        "临汾市": "山西省",
        "吕梁市": "山西省",
        "呼和浩特市": "内蒙古自治区",
        "包头市": "内蒙古自治区",
        "乌海市": "内蒙古自治区",
        "赤峰市": "内蒙古自治区",
        "通辽市": "内蒙古自治区",
        "鄂尔多斯市": "内蒙古自治区",
        "呼伦贝尔市": "内蒙古自治区",
        "巴彦淖尔市": "内蒙古自治区",
        "乌兰察布市": "内蒙古自治区",
        "兴安盟": "内蒙古自治区",
        "锡林郭勒盟": "内蒙古自治区",
        "阿拉善盟": "内蒙古自治区",
        "沈阳市": "辽宁省",
        "大连市": "辽宁省",
        "鞍山市": "辽宁省",
        "抚顺市": "辽宁省",
        "本溪市": "辽宁省",
        "丹东市": "辽宁省",
        "锦州市": "辽宁省",
        "营口市": "辽宁省",
        "阜新市": "辽宁省",
        "辽阳市": "辽宁省",
        "盘锦市": "辽宁省",
        "铁岭市": "辽宁省",
        "朝阳市": "辽宁省",
        "葫芦岛市": "辽宁省",
        "长春市": "吉林省",
        "吉林市": "吉林省",
        "四平市": "吉林省",
        "辽源市": "吉林省",
        "通化市": "吉林省",
        "白山市": "吉林省",
        "松原市": "吉林省",
        "白城市": "吉林省",
        "延边朝鲜族自治州": "吉林省",
        "哈尔滨市": "黑龙江省",
        "齐齐哈尔市": "黑龙江省",
        "鸡西市": "黑龙江省",
        "鹤岗市": "黑龙江省",
        "双鸭山市": "黑龙江省",
        "大庆市": "黑龙江省",
        "伊春市": "黑龙江省",
        "佳木斯市": "黑龙江省",
        "七台河市": "黑龙江省",
        "牡丹江市": "黑龙江省",
        "黑河市": "黑龙江省",
        "绥化市": "黑龙江省",
        "大兴安岭地区": "黑龙江省",
        "上海市": "上海市",
        "南京市": "江苏省",
        "无锡市": "江苏省",
        "徐州市": "江苏省",
        "常州市": "江苏省",
        "苏州市": "江苏省",
        "南通市": "江苏省",
        "连云港市": "江苏省",
        "淮安市": "江苏省",
        "盐城市": "江苏省",
        "扬州市": "江苏省",
        "镇江市": "江苏省",
        "泰州市": "江苏省",
        "宿迁市": "江苏省",
        "杭州市": "浙江省",
        "宁波市": "浙江省",
        "温州市": "浙江省",
        "嘉兴市": "浙江省",
        "湖州市": "浙江省",
        "绍兴市": "浙江省",
        "金华市": "浙江省",
        "衢州市": "浙江省",
        "舟山市": "浙江省",
        "台州市": "浙江省",
        "丽水市": "浙江省",
        "合肥市": "安徽省",
        "芜湖市": "安徽省",
        "蚌埠市": "安徽省",
        "淮南市": "安徽省",
        "马鞍山市": "安徽省",
        "淮北市": "安徽省",
        "铜陵市": "安徽省",
        "安庆市": "安徽省",
        "黄山市": "安徽省",
        "滁州市": "安徽省",
        "阜阳市": "安徽省",
        "宿州市": "安徽省",
        "六安市": "安徽省",
        "亳州市": "安徽省",
        "池州市": "安徽省",
        "宣城市": "安徽省",
        "福州市": "福建省",
        "厦门市": "福建省",
        "莆田市": "福建省",
        "三明市": "福建省",
        "泉州市": "福建省",
        "漳州市": "福建省",
        "南平市": "福建省",
        "龙岩市": "福建省",
        "宁德市": "福建省",
        "南昌市": "江西省",
        "景德镇市": "江西省",
        "萍乡市": "江西省",
        "九江市": "江西省",
        "新余市": "江西省",
        "鹰潭市": "江西省",
        "赣州市": "江西省",
        "吉安市": "江西省",
        "宜春市": "江西省",
        "抚州市": "江西省",
        "上饶市": "江西省",
        "济南市": "山东省",
        "青岛市": "山东省",
        "淄博市": "山东省",
        "枣庄市": "山东省",
        "东营市": "山东省",
        "烟台市": "山东省",
        "潍坊市": "山东省",
        "济宁市": "山东省",
        "泰安市": "山东省",
        "威海市": "山东省",
        "日照市": "山东省",
        "莱芜市": "山东省",
        "临沂市": "山东省",
        "德州市": "山东省",
        "聊城市": "山东省",
        "滨州市": "山东省",
        "菏泽市": "山东省",
        "郑州市": "河南省",
        "开封市": "河南省",
        "洛阳市": "河南省",
        "平顶山市": "河南省",
        "安阳市": "河南省",
        "鹤壁市": "河南省",
        "新乡市": "河南省",
        "焦作市": "河南省",
        "濮阳市": "河南省",
        "许昌市": "河南省",
        "漯河市": "河南省",
        "三门峡市": "河南省",
        "南阳市": "河南省",
        "商丘市": "河南省",
        "信阳市": "河南省",
        "周口市": "河南省",
        "驻马店市": "河南省",
        "济源市": "河南省",
        "武汉市": "湖北省",
        "黄石市": "湖北省",
        "十堰市": "湖北省",
        "宜昌市": "湖北省",
        "襄阳市": "湖北省",
        "鄂州市": "湖北省",
        "荆门市": "湖北省",
        "孝感市": "湖北省",
        "荆州市": "湖北省",
        "黄冈市": "湖北省",
        "咸宁市": "湖北省",
        "随州市": "湖北省",
        "恩施土家族苗族自治州": "湖北省",
        "仙桃市": "湖北省",
        "潜江市": "湖北省",
        "天门市": "湖北省",
        "神农架林区": "湖北省",
        "长沙市": "湖南省",
        "株洲市": "湖南省",
        "湘潭市": "湖南省",
        "衡阳市": "湖南省",
        "邵阳市": "湖南省",
        "岳阳市": "湖南省",
        "常德市": "湖南省",
        "张家界市": "湖南省",
        "益阳市": "湖南省",
        "郴州市": "湖南省",
        "永州市": "湖南省",
        "怀化市": "湖南省",
        "娄底市": "湖南省",
        "湘西土家族苗族自治州": "湖南省",
        "广州市": "广东省",
        "韶关市": "广东省",
        "深圳市": "广东省",
        "珠海市": "广东省",
        "汕头市": "广东省",
        "佛山市": "广东省",
        "江门市": "广东省",
        "湛江市": "广东省",
        "茂名市": "广东省",
        "肇庆市": "广东省",
        "惠州市": "广东省",
        "梅州市": "广东省",
        "汕尾市": "广东省",
        "河源市": "广东省",
        "阳江市": "广东省",
        "清远市": "广东省",
        "东莞市": "广东省",
        "中山市": "广东省",
        "潮州市": "广东省",
        "揭阳市": "广东省",
        "云浮市": "广东省",
        "南宁市": "广西壮族自治区",
        "柳州市": "广西壮族自治区",
        "桂林市": "广西壮族自治区",
        "梧州市": "广西壮族自治区",
        "北海市": "广西壮族自治区",
        "防城港市": "广西壮族自治区",
        "钦州市": "广西壮族自治区",
        "贵港市": "广西壮族自治区",
        "玉林市": "广西壮族自治区",
        "百色市": "广西壮族自治区",
        "贺州市": "广西壮族自治区",
        "河池市": "广西壮族自治区",
        "来宾市": "广西壮族自治区",
        "崇左市": "广西壮族自治区",
        "海口市": "海南省",
        "三亚市": "海南省",
        "三沙市": "海南省",
        "儋州市": "海南省",
        "五指山市": "海南省",
        "琼海市": "海南省",
        "文昌市": "海南省",
        "万宁市": "海南省",
        "东方市": "海南省",
        "定安县": "海南省",
        "屯昌县": "海南省",
        "澄迈县": "海南省",
        "临高县": "海南省",
        "白沙黎族自治县": "海南省",
        "昌江黎族自治县": "海南省",
        "乐东黎族自治县": "海南省",
        "陵水黎族自治县": "海南省",
        "保亭黎族苗族自治县": "海南省",
        "琼中黎族苗族自治县": "海南省",
        "重庆市": "重庆市",
        "重庆市郊县": "重庆市",
        "成都市": "四川省",
        "自贡市": "四川省",
        "攀枝花市": "四川省",
        "泸州市": "四川省",
        "德阳市": "四川省",
        "绵阳市": "四川省",
        "广元市": "四川省",
        "遂宁市": "四川省",
        "内江市": "四川省",
        "乐山市": "四川省",
        "南充市": "四川省",
        "眉山市": "四川省",
        "宜宾市": "四川省",
        "广安市": "四川省",
        "达州市": "四川省",
        "雅安市": "四川省",
        "巴中市": "四川省",
        "资阳市": "四川省",
        "阿坝藏族羌族自治州": "四川省",
        "甘孜藏族自治州": "四川省",
        "凉山彝族自治州": "四川省",
        "贵阳市": "贵州省",
        "六盘水市": "贵州省",
        "遵义市": "贵州省",
        "安顺市": "贵州省",
        "毕节市": "贵州省",
        "铜仁市": "贵州省",
        "黔西南布依族苗族自治州": "贵州省",
        "黔东南苗族侗族自治州": "贵州省",
        "黔南布依族苗族自治州": "贵州省",
        "昆明市": "云南省",
        "曲靖市": "云南省",
        "玉溪市": "云南省",
        "保山市": "云南省",
        "昭通市": "云南省",
        "丽江市": "云南省",
        "普洱市": "云南省",
        "临沧市": "云南省",
        "楚雄彝族自治州": "云南省",
        "红河哈尼族彝族自治州": "云南省",
        "文山壮族苗族自治州": "云南省",
        "西双版纳傣族自治州": "云南省",
        "大理白族自治州": "云南省",
        "德宏傣族景颇族自治州": "云南省",
        "怒江傈僳族自治州": "云南省",
        "迪庆藏族自治州": "云南省",
        "拉萨市": "西藏自治区",
        "日喀则市": "西藏自治区",
        "昌都市": "西藏自治区",
        "山南市": "西藏自治区",
        "那曲地区": "西藏自治区",
        "阿里地区": "西藏自治区",
        "林芝市": "西藏自治区",
        "西安市": "陕西省",
        "铜川市": "陕西省",
        "宝鸡市": "陕西省",
        "咸阳市": "陕西省",
        "渭南市": "陕西省",
        "延安市": "陕西省",
        "汉中市": "陕西省",
        "榆林市": "陕西省",
        "安康市": "陕西省",
        "商洛市": "陕西省",
        "兰州市": "甘肃省",
        "嘉峪关市": "甘肃省",
        "金昌市": "甘肃省",
        "白银市": "甘肃省",
        "天水市": "甘肃省",
        "武威市": "甘肃省",
        "张掖市": "甘肃省",
        "平凉市": "甘肃省",
        "酒泉市": "甘肃省",
        "庆阳市": "甘肃省",
        "定西市": "甘肃省",
        "陇南市": "甘肃省",
        "临夏回族自治州": "甘肃省",
        "甘南藏族自治州": "甘肃省",
        "西宁市": "青海省",
        "海东市": "青海省",
        "海北藏族自治州": "青海省",
        "黄南藏族自治州": "青海省",
        "海南藏族自治州": "青海省",
        "果洛藏族自治州": "青海省",
        "玉树藏族自治州": "青海省",
        "海西蒙古族藏族自治州": "青海省",
        "银川市": "宁夏回族自治区",
        "石嘴山市": "宁夏回族自治区",
        "吴忠市": "宁夏回族自治区",
        "固原市": "宁夏回族自治区",
        "中卫市": "宁夏回族自治区",
        "乌鲁木齐市": "新疆维吾尔自治区",
        "克拉玛依市": "新疆维吾尔自治区",
        "吐鲁番市": "新疆维吾尔自治区",
        "哈密市": "新疆维吾尔自治区",
        "昌吉回族自治州": "新疆维吾尔自治区",
        "博尔塔拉蒙古自治州": "新疆维吾尔自治区",
        "巴音郭楞蒙古自治州": "新疆维吾尔自治区",
        "阿克苏地区": "新疆维吾尔自治区",
        "克孜勒苏柯尔克孜自治州": "新疆维吾尔自治区",
        "喀什地区": "新疆维吾尔自治区",
        "和田地区": "新疆维吾尔自治区",
        "伊犁哈萨克自治州": "新疆维吾尔自治区",
        "塔城地区": "新疆维吾尔自治区",
        "阿勒泰地区": "新疆维吾尔自治区",
        "石河子市": "新疆维吾尔自治区",
        "阿拉尔市": "新疆维吾尔自治区",
        "图木舒克市": "新疆维吾尔自治区",
        "五家渠市": "新疆维吾尔自治区",
        "北屯市": "新疆维吾尔自治区",
        "铁门关市": "新疆维吾尔自治区",
        "双河市": "新疆维吾尔自治区",
        "可克达拉市": "新疆维吾尔自治区",
        "昆玉市": "新疆维吾尔自治区",
        "中西区": "香港特别行政区",
        "湾仔区": "香港特别行政区",
        "东区": "香港特别行政区",
        "南区": "香港特别行政区",
        "油尖旺区": "香港特别行政区",
        "深水埗区": "香港特别行政区",
        "九龙城区": "香港特别行政区",
        "黄大仙区": "香港特别行政区",
        "观塘区": "香港特别行政区",
        "荃湾区": "香港特别行政区",
        "屯门区": "香港特别行政区",
        "元朗区": "香港特别行政区",
        "北区": "香港特别行政区",
        "大埔区": "香港特别行政区",
        "西贡区": "香港特别行政区",
        "沙田区": "香港特别行政区",
        "葵青区": "香港特别行政区",
        "离岛区": "香港特别行政区",
        "香港特别行政区": "香港特别行政区",
        "澳门特别行政区": "澳门特别行政区",
        "花地玛堂区": "澳门特别行政区",
        "花王堂区": "澳门特别行政区",
        "望德堂区": "澳门特别行政区",
        "大堂区": "澳门特别行政区",
        "风顺堂区": "澳门特别行政区",
        "嘉模堂区": "澳门特别行政区",
        "路凼填海区": "澳门特别行政区",
        "圣方济各堂区": "澳门特别行政区",
        "台湾省": "台湾省"
    }
</script>
<script>
    var cityList = [{ "letter": "A", "list": ["阿拉善盟", "鞍山市", "安庆市", "安阳市", "阿坝藏族羌族自治州", "安顺市", "阿里地区", "安康市", "阿克苏地区", "阿勒泰地区", "阿拉尔市", "澳门特别行政区"] }, { "letter": "B", "list": ["北京市", "保定市", "包头市", "巴彦淖尔市", "本溪市", "白山市", "白城市", "蚌埠市", "亳州市", "滨州市", "北海市", "百色市", "白沙黎族自治县", "保亭黎族苗族自治县", "巴中市", "毕节市", "保山市", "宝鸡市", "白银市", "博尔塔拉蒙古自治州", "巴音郭楞蒙古自治州", "北屯市"] }, { "letter": "C", "list": ["承德市", "沧州市", "长治市", "赤峰市", "长春市", "常州市", "滁州市", "池州市", "长沙市", "常德市", "郴州市", "潮州市", "崇左市", "澄迈县", "昌江黎族自治县", "成都市", "楚雄彝族自治州", "昌都市", "昌吉回族自治州"] }, { "letter": "D", "list": ["大同市", "大连市", "丹东市", "大庆市", "大兴安岭地区", "东营市", "德州市", "东莞市", "儋州市", "东方市", "定安县", "德阳市", "达州市", "大理白族自治州", "德宏傣族景颇族自治州", "迪庆藏族自治州", "定西市"] }, { "letter": "E", "list": ["鄂尔多斯市", "鄂州市", "恩施土家族苗族自治州"] }, { "letter": "F", "list": ["抚顺市", "阜新市", "阜阳市", "福州市", "莆田市", "抚州市", "佛山市", "防城港市"] }, { "letter": "G", "list": ["赣州市", "广州市", "桂林市", "贵港市", "广元市", "广安市", "甘孜藏族自治州", "贵阳市", "甘南藏族自治州", "果洛藏族自治州", "固原市"] }, { "letter": "H", "list": ["邯郸市", "衡水市", "呼和浩特市", "呼伦贝尔市", "葫芦岛市", "哈尔滨市", "鹤岗市", "黑河市", "淮安市", "杭州市", "湖州市", "合肥市", "淮南市", "淮北市", "黄山市", "菏泽市", "鹤壁市", "黄石市", "黄冈市", "衡阳市", "怀化市", "惠州市", "河源市", "贺州市", "河池市", "海口市", "红河哈尼族彝族自治州", "汉中市", "海东市", "海北藏族自治州", "黄南藏族自治州", "海南藏族自治州", "海西蒙古族藏族自治州", "哈密市", "和田地区"] }, { "letter": "J", "list": ["晋城市", "晋中市", "锦州市", "吉林市", "鸡西市", "佳木斯市", "嘉兴市", "金华市", "景德镇市", "九江市", "吉安市", "济南市", "济宁市", "焦作市", "济源市", "荆门市", "荆州市", "江门市", "揭阳市", "嘉峪关市", "金昌市", "酒泉市"] }, { "letter": "K", "list": ["开封市", "昆明市", "克拉玛依市", "克孜勒苏柯尔克孜自治州", "喀什地区", "可克达拉市", "昆玉市"] }, { "letter": "L", "list": ["廊坊市", "临汾市", "吕梁市", "辽阳市", "辽源市", "连云港市", "丽水市", "六安市", "龙岩市", "莱芜市", "临沂市", "聊城市", "洛阳市", "娄底市", "柳州市", "来宾市", "临高县", "乐东黎族自治县", "陵水黎族自治县", "泸州市", "乐山市", "凉山彝族自治州", "六盘水市", "丽江市", "临沧市", "拉萨市", "林芝市", "兰州市", "陇南市", "临夏回族自治州"] }, { "letter": "M", "list": ["牡丹江市", "马鞍山市", "茂名市", "梅州市", "绵阳市", "眉山市"] }, { "letter": "N", "list": ["南京市", "南通市", "宁波市", "南平市", "宁德市", "南昌市", "南阳市", "南宁市", "内江市", "南充市", "怒江傈僳族自治州", "那曲地区"] }, { "letter": "P", "list": ["盘锦市", "萍乡市", "平顶山市", "濮阳市", "攀枝花市", "普洱市", "平凉市"] }, { "letter": "Q", "list": ["秦皇岛市", "齐齐哈尔市", "七台河市", "衢州市", "泉州市", "青岛市", "潜江市", "清远市", "钦州市", "琼海市", "琼中黎族苗族自治县", "黔西南布依族苗族自治州", "黔东南苗族侗族自治州", "黔南布依族苗族自治州", "曲靖市", "庆阳市"] }, { "letter": "R", "list": ["日照市", "日喀则市"] }, { "letter": "S", "list": ["石家庄市", "朔州市", "沈阳市", "四平市", "松原市", "双鸭山市", "绥化市", "上海市", "苏州市", "宿迁市", "绍兴市", "宿州市", "厦门市", "三明市", "上饶市", "三门峡市", "商丘市", "十堰市", "随州市", "神农架林区", "邵阳市", "韶关市", "深圳市", "汕头市", "汕尾市", "三亚市", "三沙市", "遂宁市", "山南市", "商洛市", "石嘴山市", "石河子市", "双河市"] }, { "letter": "T", "list": ["天津市", "唐山市", "太原市", "通辽市", "铁岭市", "通化市", "泰州市", "台州市", "铜陵市", "泰安市", "漯河市", "天门市", "屯昌县", "铜仁市", "铜川市", "天水市", "吐鲁番市", "塔城地区", "图木舒克市", "铁门关市", "台湾省"] }, { "letter": "W", "list": ["乌海市", "乌兰察布市", "无锡市", "温州市", "芜湖市", "潍坊市", "威海市", "武汉市", "梧州市", "五指山市", "文昌市", "万宁市", "文山壮族苗族自治州", "渭南市", "武威市", "吴忠市", "乌鲁木齐市", "五家渠市"] }, { "letter": "X", "list": ["邢台市", "忻州市", "兴安盟", "锡林郭勒盟", "徐州市", "宣城市", "新余市", "新乡市", "许昌市", "信阳市", "襄阳市", "孝感市", "咸宁市", "仙桃市", "湘潭市", "湘西土家族苗族自治州", "西双版纳傣族自治州", "西安市", "咸阳市", "西宁市", "香港特别行政区"] }, { "letter": "Y", "list": ["阳泉市", "运城市", "营口市", "延边朝鲜族自治州", "伊春市", "盐城市", "扬州市", "鹰潭市", "宜春市", "烟台市", "宜昌市", "岳阳市", "益阳市", "永州市", "阳江市", "云浮市", "玉林市", "宜宾市", "雅安市", "玉溪市", "延安市", "榆林市", "玉树藏族自治州", "银川市", "伊犁哈萨克自治州"] }, { "letter": "Z", "list": ["张家口市", "朝阳市", "镇江市", "舟山市", "漳州市", "淄博市", "枣庄市", "郑州市", "周口市", "驻马店市", "株洲市", "张家界市", "珠海市", "湛江市", "肇庆市", "中山市", "重庆市", "自贡市", "资阳市", "遵义市", "昭通市", "张掖市", "中卫市"] }];
    var CityIndex = ["A", "B", "C", "D", "E", "F", "G", "H", "J", "K", "L", "M", "N", "P", "Q", "R", "S", "T", "W", "X", "Y", "Z"];
    var CityHots = ["北京市", "长春市", "常州市", "长沙市", "大连市", "贵阳市", "广州市", "哈尔滨市", "济南市", "昆明市", "宁波市", "青岛市", "上海市", "深圳市", "无锡市", "西安市", "厦门市", "郑州市"];

    var isClick = true;
    var Config = {
        "2": {
            type: 2, location: 1, color: 3, span: 6, wide: 8, high: 4.5, install: 2, box: '3', sync: 1, toBottom: 0,distance: 6,
        },
        "3": {
            type: 3, location: 3, color: 1, span: 10, wide: 3, high: 0.5, install: 2, box: 4, sync: 3, toBottom: 0,distance: 10,
        },
        "5": {
            type: 5, location: 2, color: 3, span: 4, wide: 6, high: 4, install: 1, box: 2, sync: 1, toBottom: 0,distance: 4,
        },
        "4": {
            type: 4, location: 1, color: 3, span: 10, wide: 3, high: 0.5, install: 2, box: 3, sync: 1, toBottom: 0,distance: 10,
        },
        "1": {
            type: 1, location: 2, color: 3, span: 1.9, wide: 5, high: 3, install: 2, box: 1, sync: 1, toBottom: 0,distance: 2.5,
        }
    };
    $(document).ready(function () {
        if(window.location.href.indexOf("wanpingfa.com")>-1){
            $('.phone400').html("400-998-9582 ");
        }

        // 渲染热门城市
        var hotDom = '';
        $.each(CityHots, function (index, value) {
            hotDom += '<a data-city="' + value + '">' + value + '</a>';
        });
        $('#citySelector .HOT ').html('<dl class="hots selected"><dd>' + hotDom + '</dd></dl>');
        //渲染城市列表
        var ABCDE = '';
        var FGHIJ = '';
        var KLMNOP = '';
        var QRSTUV = '';
        var WXYZ = '';
        $.each(cityList, function (index, item) {
            var cityDom = '';
            var letter = '<dt>' + item.letter + '</dt>';
            var citys = '';
            $.each(item.list, function (i, city) {
                citys += '<a data-city="' + city + '">' + city + '</a>';
            });
            cityDom = letter + '<dd>' + citys + '</dd>';
            if ("ABCDE".indexOf(item.letter) > -1) {
                ABCDE += cityDom;
            }else if ("FGHIJ".indexOf(item.letter) > -1) {
                FGHIJ += cityDom;
            }else if("KLMNOP".indexOf(item.letter) > -1) {
                KLMNOP += cityDom;
            }else if("QRSTUV".indexOf(item.letter) > -1) {
                QRSTUV += cityDom;
            }else if("WXYZ".indexOf(item.letter) > -1) {
                WXYZ += cityDom;
            }
        });
        $('#citySelector .ABCDE ').html('<dl class="selected">' + ABCDE + '</dl>');
        $('#citySelector .FGHIJ ').html('<dl class="selected">' + FGHIJ + '</dl>');
        $('#citySelector .KLMNOP ').html('<dl class="selected">' + KLMNOP + '</dl>');
        $('#citySelector .QRSTUV ').html('<dl class="selected">' + QRSTUV + '</dl>');
        $('#citySelector .WXYZ ').html('<dl class="selected">' + WXYZ + '</dl>');

        var array =[5,8,3,2,1,2,8,25,55,59,78,64,63,55,73,93,78,71,54,51,49,40,21,7];
        var data =[[1440,1348,40,52],[40431,35116,4075,1240],[115042,92786,16324,5932],[227318,146590,59308,21420],[7546,6524,682,340],[481270,340647,97603,43020],[97621,80341,13073,4207]];
        $('.input').on('input',function(){
                $('.input').removeClass('error');
                $('.mobileError').hide();
                $('.mobile .input').attr('placeholder','用于接收报价的手机号');
                
        });
        var hours = new Date().getHours();
        var totalNumber=0;
        for(var i=0;i<=hours;i++){
            totalNumber = array[i] + totalNumber;
        }
        $('.curr-number').html(totalNumber);
       
        setInterval(function(){
            Math.random()*7;
            var num = Math.random()*7 + 0;
            num = parseInt(num, 10);
            $('.computed-now .text-blue').html(data[num][0]);
            $('.computed-now .com-div-money').html(data[num][1]);
            $('.computed-now .com-sys-money').html(data[num][2]);
            $('.computed-now .com-other-money').html(data[num][3]);
        },280);

        var swiper = new Swiper('.swiper-container-case', {
                slidesPerView: 3,
                spaceBetween: 30,
                freeMode: true,
                autoplay: true,
            });
    });

    // 点击输入框展开备选项
    function openOptions(e,obj) {
        e.preventDefault();
        $(obj).parent().find('.options').slideToggle(300);
        $(obj).find('.icon-circle-down').toggleClass('rotate');
    }
    // 屏幕类型 点击备选项收齐下拉框并修改数据
    function chooseOptionInstall(e,obj) {
        if(e.target === obj){
            $(obj).slideToggle(300);
            $(obj).parents('.com-input').find('.icon-circle-down').toggleClass('rotate');
        }else{
            var val = e.target.innerHTML;
            var type = $(e.target).attr('type');
            var locationHtml='';
            var locationval='';
            var locationtype='';
            var distance = 0;
            $(obj).slideToggle(300);
            $(obj).parents('.com-input').find('.icon-circle-down').toggleClass('rotate');
            $(obj).parents('.com-input').find('.select-val').html(val);
            switch(type){
                case '3':
                    distance=10;
                    locationval = '半户外';
                    locationtype = 3;
                    locationHtml = '<i class="item" type="1">户外</i><i class="item" type="3">半户外</i>';
                    break;
                case '2':
                    distance=6;
                    locationval = '户外';
                    locationtype = 1;
                    locationHtml = '<i class="item" type="1">户外</i><i class="item" type="2">室内</i>';
                    break;
                case '5':
                    distance=4;
                    locationval = '室内';
                    locationtype = 2;
                    locationHtml = '<i class="item" type="1">户外</i><i class="item" type="2">室内</i>';
                    break;
                case '4':
                     distance=10;
                    locationval = '户外';
                    locationtype = 1;
                    locationHtml = '<i class="item" type="1">户外</i>';
                    
                    break;
                case '1':
                    distance=2.5;
                    locationval = '室内';
                    locationtype = 2;
                    locationHtml = '<i class="item" type="1">户外</i><i class="item" type="2">室内</i>';
                    break;
            }
            $('.install .select').attr('type',type);
            $('.location .options').html(locationHtml);
            $('.location .select-val').html(locationval);
            $('.location .select').attr('type',locationtype);
            $('.distance .input').val(distance);
            $('.width').val(Config[type].wide);
            $('.height').val(Config[type].high);
        }
    }
    // 点击备选项收齐下拉框并修改数据
    function chooseOption(e,obj) {
        if(e.target === obj){
            $(obj).slideToggle(300);
            $(obj).parents('.com-input').find('.icon-circle-down').toggleClass('rotate');
        }else{
            $(obj).slideToggle(300);
            $(obj).parents('.com-input').find('.icon-circle-down').toggleClass('rotate');
            var val = e.target.innerHTML;
            $(obj).parents('.com-input').find('.select-val').html(val);
        }
    }
    //提交
    function submit(e,obj){
        // 百度事件统计
        trackBaidu(1);

        if(checkPhone()){
            // 百度事件统计
            trackBaidu(2);

            var mobile, city, prov, sem, cate = 1;
            mobile = $('.mobile .input').val().trim();

            city = $('.citySelect').html();
            prov = globalData.cityToProvince[city];
            sem = globalData.sem;
            var inquiryInfo = {
                cate: cate,
                mobile: mobile,
                city: city,
                sem: sem,
                prov: prov
            };
            $.each(inquiryInfo, function (key, value) {
                if (!value) {
                    delete inquiryInfo[key];
                }
            });
            if(!isClick){
                return;
            }else{
                isClick = false;
            }
            postDraft(inquiryInfo, {
                succ: function succ() {
                    isClick = true;
                    // 百度事件统计
                    trackBaidu(3);
                },fail: function(){
                    isClick = true;
                }
            });
        }
        if(checkPhone() && checkNull('.distance .input') && checkNull('.width') && checkNull('.height')){
            
            /** 处理配置项，用来匹配后端需要的参数模型*/
            var options = {};
            var type = $('.install .select').attr('type');
            options.working = type;//工况：   1 安防监控 2 商用广告 3 门头广告 4 交通诱导 5 舞台租赁
            options.scene_type = Config[type].location; //室内外
            options.install_way = Config[type].install;//挂装方式： 1 落地式 2 墙挂式 3 单立柱 4 双立柱
            options.color = Config[type].color;
            options.spacing = Config[type].distance;//间距
            options.assemble_way = Config[type].box;
            options.wide = parseFloat($('.width').val().trim()) ;
            options.high = parseFloat($('.height').val().trim());
            options.transport = Config[type].sync;
            options.ground_high = Config[type].toBottom;

            GetQuotation(options, {
                succ: function succ(json) {
                    var div = 0,sys = 0;
                    for(var i=0;i<json.prices.screen_products.length;i++){
                        if(parseInt(json.prices.screen_products[i].product_type_id) == 1 || parseInt(json.prices.screen_products[i].product_type_id) == 6){
                            div = div + parseFloat(json.prices.screen_products[i].total);
                        }else{
                            sys = sys + parseFloat(json.prices.screen_products[i].total);
                        }
                    }


                    //模组1、箱体4、电源6
                    div = div+ parseFloat(json.prices.assemble_products[0].total);

                    var tt = formatInt(parseInt(json.total));
                    div = formatInt(div);
                    sys = formatInt(sys);
                    var other = '议价';
                    if(tt - div - sys>0){
                        other = (tt - div - sys);
                    }else{
                        sys = tt -div;
                    }
//                    console.log('原始：'+tt +'='+div+'+'+sys+'+'+other);
                    // 根据价格区间乘以相应的系数
                    if(tt>10000 && tt<=100000){
                        // 随机区间（0.6-1）
                        var randomNum = parseFloat((Math.random()*0.4+0.6).toFixed(1));
                        tt = tt*randomNum;
                        div = div*randomNum;
                        sys = sys*randomNum;
                        if(typeof other == "number"){
                            other = other*randomNum;
                        }

                    }else if(tt>100000 && tt<=300000){
                        // 随机区间（0.4-0.7）
                        var randomNum = parseFloat((Math.random()*0.3+0.4).toFixed(1));
                        tt = tt*randomNum;
                        div = div*randomNum;
                        sys = sys*randomNum;
                        if(typeof other == "number"){
                            other = other*randomNum;
                        }
                    }else if(tt>300000 && tt<=500000){
                        // 随机区间（0.4-0.6）
                        var randomNum = parseFloat((Math.random()*0.2+0.4).toFixed(1));
                        tt = tt*randomNum;
                        div = div*randomNum;
                        sys = sys*randomNum;
                        if(typeof other == "number"){
                            other = other*randomNum;
                        }
                    }else if(tt>500000){
                        // 随机区间（0.2-0.6）
                        var randomNum = parseFloat((Math.random()*0.4+0.2).toFixed(1));
                        tt = tt*randomNum;
                        div = div*randomNum;
                        sys = sys*randomNum;
                        if(typeof other == "number"){
                            other = other*randomNum;
                        }
                    }
//                    console.log('系数：'+tt +'='+div+'+'+sys+'+'+other);
                    $('.computed-result .text-yellow').html(tt);
                    $('.computed-result .com-div-money').html(div);
                    //接收卡7、发送卡9、拼接器12
                    $('.computed-result .com-sys-money').html(sys);
                    // 扣件、电源线、排线、箱体间网线、钢结构
                    $('.computed-result .com-other-money').html(other);

                    $('.computed-now').hide();
                    $('.computed-result').show();
                },
                fail: function fail(json) {
                    alert(json.msg);
                }
            });
            
        }
    }
    //检测空值
     function checkNull(element) {
        var val =parseFloat($(element).val().trim());
        if (!val) {
            $(element).addClass('error');
            return false;
        }
            $(element).removeClass('error');
        return true;
    }
    //检测手机号
    function checkPhone() {
        var mobile = $('.mobile .input').val().trim();
        if("" == mobile){
            $('.mobile .input').addClass('error');
            $('.mobileError').show();
            $('.mobile .input').attr('placeholder','');
            return false;
        }
        if (!/^1(3|4|5|7|8)\d{9}$/.test(mobile)) {
            $('.mobile .input').val('');
            $('.mobile .input').attr('placeholder','');
            $('.mobile .input').addClass('error');
            $('.mobileError').html('请填写正确的手机号');
            $('.mobileError').show();
            return false;
        }
        $('.mobile .input').removeClass('error');
        $('.mobileError').hide();
        return true;
    }

    /** 百度统计事件
     * type: 1 ==  点击按钮就计算一次
     * type: 2 ==  手机号正确并点击按钮
     * type: 3 ==  手机号正确并提交草稿成功
     * */
    function trackBaidu(type) {
        var src = '/track/Click_Btn.html';
        if(type == 2){
            src = '/track/Click_With_Mobile.html';
        }else if(type == 3){
            src = '/track/Click_And_Submit.html';
        }else if(type == 4){
            src = '/track/Click_MeiQia.html';
        }
        // 百度事件统计
        var iframe = '<div class="hide"><iframe src="'+src+'"></iframe>"</div>';
        $('body').append(iframe);
    }

    /**预算取整*/
    function formatInt(number) {
        var length = parseInt(number).toString().length;
        if (number < 100) {
            return Math.round(number);
        } else {
            return Math.round(number / Math.pow(10, length - 2)) * Math.pow(10, length - 2);
        }
    }

    //打开城市选择
    function openCitySelect(e,obj){
        $('.CityPanel').show();
    }
    //关闭城市选择
    function closeCityPanel(e,obj){
        if(e.target === obj){
            $(obj).hide();
        }
    }
    //切换城市选择
    function changeCard(e,obj){
        var card = $(e.target).attr('card');
        var EleShow = '.HOT';
        $(obj).parent().find('a').removeClass('selected')
         $(e.target).addClass('selected')
        switch(card){
                case '1':
                    EleShow = '.ABCDE';
                    break;
                case '2':
                    EleShow = '.FGHIJ';
                    break;
                case '3':
                    EleShow = '.KLMNOP';
                    break;
                case '4':
                    EleShow = '.QRSTUV';
                    break;
                case '5':
                    EleShow = '.WXYZ';
                    break;
            }
            $('#citySelector .list').hide();
            $(EleShow).show();
    }
    //选择城市
    function changeCity(e,obj){
        $('.citySelect').html(e.target.innerHTML);
        $('.CityPanel').hide();
    }
    // 提交需求草稿
    function postDraft(data, cb) {
        ajax_post("/Client/Demand/postDraft", data, cb);
    }
    //求最后价格
    function GetQuotation(data, cb) {
        ajax_post("/compute/prices", data, cb);
    }

    /** ajax请求方法 */
    function ajax_post(url, data, cb) {
        var URL = "https://opc.wanpinghui.com/api" + url;
        $.ajax(URL, $.extend({
            method: 'POST',
            data: data,
            dataType: "json",
            timeout: 30000,
            xhrFields: {
                withCredentials: true
            },
            headers: {
                'Accept': 'application/x-www-form-urlencoded',
                'Content-Type': 'application/x-www-form-urlencoded'
            },
            contentType: 'application/x-www-form-urlencoded',
            success: function success(json, status, xhr) {
                cb && cb.always && cb.always(json);
                if (json.status == "200") {
                    cb && cb.succ && cb.succ(json);
                } else {
                    cb && cb.fail && cb.fail(json);
                }
            },
            error: function error(xhr, status, thrown) {
                console.log("[!err!](" + url + "): status: " + xhr.status + ", msg: " + thrown);
                cb && cb.fail && cb.fail();
                console.error("接口[" + url + "]：失败");
            }
        }));
    }
</script>

    <!-- baidu统计 -->
 <script>
     var src = "https://hm.baidu.com/hm.js?ec72f5c5824f2e1855d9bcc5ffaa2e98";

     if(window.location.href.indexOf("wanpingfa.com")>-1){
         var src = "https://hm.baidu.com/hm.js?29f78294c30bbd3df40071f9446d97c3";
     }

var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = src;
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>

    <!-- CNZZ统计代码 -->
    <script type="text/javascript">
        var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");
        document.write(unescape("%3Cspan id='cnzz_stat_icon_1274255512'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s22.cnzz.com/z_stat.php%3Fid%3D1274255512' type='text/javascript'%3E%3C/script%3E"));
    </script>
</body>

</html>